//
//  CollectionCell.m
//  K-Music
//
//  Created by 林杰良 on 16/1/4.
//  Copyright © 2016年 CHUN. All rights reserved.
//

#import "CollectionCell.h"

@implementation CollectionCell

-(id)initWithFrame:(CGRect)frame{
    
    self=[super initWithFrame:frame];
    
    if (self) {
        UIImageView*dt=[[UIImageView alloc]initWithFrame:CGRectMake(0, 0, WIDTH/2, HEIGHT/4)];
        dt.image=[UIImage imageNamed:@"组-3"];
        [self addSubview:dt];
        
        UIImageView *top_img=[[UIImageView alloc]initWithFrame:CGRectMake(10, 10, 30, 30)];
        top_img.image=[UIImage imageNamed:@"图层-49"];
        [dt addSubview:top_img];
        
        UILabel*mylabel=[[UILabel alloc]initWithFrame:CGRectMake(0, HEIGHT/8, WIDTH/2, 30)];
        mylabel.text=@"Do  you know";
        mylabel.textColor=[UIColor whiteColor];
        mylabel.textAlignment=NSTextAlignmentCenter;
        [dt addSubview: mylabel];
        
        
        UILabel*my_name=[[UILabel alloc]initWithFrame:CGRectMake(5, dt.frame.size.height-30, WIDTH/6, 30)];
        my_name.text=@"黑神";
        my_name.textColor=[UIColor whiteColor];
        my_name.textAlignment=NSTextAlignmentCenter;
        [dt addSubview: my_name];
        
        UILabel*my_fun=[[UILabel alloc]initWithFrame:CGRectMake(my_name.frame.size.width+my_name.frame.origin.x +10, dt.frame.size.height-30, WIDTH/6, 30)];
        my_fun.text=@"1234人";
        my_fun.textColor=[UIColor whiteColor];
        my_fun.textAlignment=NSTextAlignmentCenter;
        [dt addSubview: my_fun];
        
    }
    return self;
}


@end
